/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.st.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 收付款账期Entity
 * @author HOHD
 * @version 2020-12-31
 */
@Table(name="st_receipt_pay_time", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="receipt", attrName="receipt", label="收款账期"),
		@Column(name="days", attrName="days", label="账期天数"),
		@Column(name="receipt_or_pay", attrName="receiptOrPay", label="收付款"),
		@Column(name="effect", attrName="effect", label="有效"),
		@Column(name="remarks", attrName="remarks", label="备注", queryType=QueryType.LIKE),
	}, orderBy="a.id DESC"
)
public class StReceiptPayTime extends DataEntity<StReceiptPayTime> {
	
	private static final long serialVersionUID = 1L;
	private String receipt;		// 收款账期
	private Integer days;		// 账期天数
	private Integer receiptOrPay;		// 收付款
	private Integer effect;		// 有效
	
	public StReceiptPayTime() {
		this(null);
	}

	public StReceiptPayTime(String id){
		super(id);
	}
	
	@Length(min=0, max=20, message="收款账期长度不能超过 20 个字符")
	public String getReceipt() {
		return receipt;
	}

	public void setReceipt(String receipt) {
		this.receipt = receipt;
	}
	
	public Integer getDays() {
		return days;
	}

	public void setDays(Integer days) {
		this.days = days;
	}
	
	public Integer getReceiptOrPay() {
		return receiptOrPay;
	}

	public void setReceiptOrPay(Integer receiptOrPay) {
		this.receiptOrPay = receiptOrPay;
	}
	
	public Integer getEffect() {
		return effect;
	}

	public void setEffect(Integer effect) {
		this.effect = effect;
	}
	
}